gtk-demo: Add keywords to demos
authorMatthias Clasen <mclasen@redhat.com>
Sun, 13 Sep 2020 18:59:33 +0000 (14:59 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 13 Sep 2020 19:00:14 +0000 (15:00 -0400)
Add the names of the main widgets as keywords to
our demos, but also things like "game". This helps
finding relevant demos in our growing list. You
can now for example type "label", and find the
"error states" and "links" demos showing GtkLabel
features.

46 files changed:
demos/gtk-demo/assistant.c
demos/gtk-demo/combobox.c
demos/gtk-demo/constraints.c
demos/gtk-demo/constraints2.c
demos/gtk-demo/css_accordion.c
demos/gtk-demo/css_basics.c
demos/gtk-demo/css_multiplebgs.c
demos/gtk-demo/dialog.c
demos/gtk-demo/drawingarea.c
demos/gtk-demo/filtermodel.c
demos/gtk-demo/fixed.c
demos/gtk-demo/gestures.c
demos/gtk-demo/headerbar.c
demos/gtk-demo/hypertext.c
demos/gtk-demo/iconscroll.c
demos/gtk-demo/images.c
demos/gtk-demo/infobar.c
demos/gtk-demo/layoutmanager.c
demos/gtk-demo/layoutmanager2.c
demos/gtk-demo/list_store.c
demos/gtk-demo/listbox.c
demos/gtk-demo/listview_applauncher.c
demos/gtk-demo/listview_clocks.c
demos/gtk-demo/listview_colors.c
demos/gtk-demo/listview_filebrowser.c
demos/gtk-demo/listview_minesweeper.c
demos/gtk-demo/listview_settings.c
demos/gtk-demo/listview_words.c
demos/gtk-demo/markup.c
demos/gtk-demo/overlay.c
demos/gtk-demo/overlay2.c
demos/gtk-demo/pagesetup.c
demos/gtk-demo/paint.c
demos/gtk-demo/peg_solitaire.c
demos/gtk-demo/pickers.c
demos/gtk-demo/printing.c
demos/gtk-demo/rotated_text.c
demos/gtk-demo/search_entry2.c
demos/gtk-demo/shadertoy.c
demos/gtk-demo/shortcut_triggers.c
demos/gtk-demo/sliding_puzzle.c
demos/gtk-demo/spinbutton.c
demos/gtk-demo/spinner.c
demos/gtk-demo/textscroll.c
demos/gtk-demo/transparent.c
demos/gtk-demo/video_player.c

index 58405f6cc99f2d8344c5f39e8d12619503645820..a84b87ad819905537b34c72845f9e026feac8893 100644 (file)
@@ -1,8 +1,8 @@
 /* Assistant
  *
- * Demonstrates a sample multi-step assistant. Assistants are used to divide
- * an operation into several simpler sequential steps, and to guide the user
- * through these steps.
+ * Demonstrates a sample multi-step assistant with GtkAssistant. Assistants
+ * are used to divide an operation into several simpler sequential steps,
+ * and to guide the user through these steps.
  */
 
 #include <gtk/gtk.h>
index 0686eaf59bc9775ea23e698e67e17034d945d621..d7a7320eb0967e1dc868c39e0eec1fd1dfb48e35 100644 (file)
@@ -1,4 +1,5 @@
 /* Combo Boxes
+ * #Keywords: GtkCellRenderer
  *
  * The GtkComboBox widget allows to select one option out of a list.
  * The GtkComboBoxEntry additionally allows the user to enter a value
index 6f842008fb6ce1de9482ab2eac5ef5c5648b9cfd..2e31f22462ef2129c49b1c0f4f243abf6612dfff 100644 (file)
@@ -1,4 +1,5 @@
 /* Constraints/Simple
+ * #Keywords: GtkLayoutManager
  *
  * GtkConstraintLayout provides a layout manager that uses relations
  * between widgets (also known as "constraints") to compute the position
index 8e804592edbacbdf49cebe2b9eab556295c45b33..d63b3697394a952313d3ed7b333c9e8957563825 100644 (file)
@@ -1,4 +1,5 @@
 /* Constraints/Interactive
+ * #Keywords: GtkConstraintLayout
  *
  * Demonstrate how constraints can be updates during user interaction.
  * The vertical edge between the buttons can be dragged with the mouse.
index 45e35388035a4601bd65ccb3bfbc958b3fe9e804..c544f8a02d7a4f7b73f95870360d5489ac176c4f 100644 (file)
@@ -1,7 +1,6 @@
 /* Theming/CSS Accordion
  *
  * A simple accordion demo written using CSS transitions and multiple backgrounds
- *
  */
 
 #include <gtk/gtk.h>
index bb193d62eff1c43679e48989224dbaf74e36bc64..1c9f309800f5ac3c5eb91351c944186d75d21f92 100644 (file)
@@ -1,8 +1,7 @@
 /* Theming/CSS Basics
  *
- * Gtk themes are written using CSS. Every widget is build of multiple items
+ * GTK themes are written using CSS. Every widget is build of multiple items
  * that you can style very similarly to a regular website.
- *
  */
 
 #include <gtk/gtk.h>
index dd11c2ddbfb1af22263f185883a24864b6dcbf56..b3badee6694af3cced753a932ecbb7a7b25b10e7 100644 (file)
@@ -1,8 +1,7 @@
 /* Theming/Multiple Backgrounds
  *
- * Gtk themes are written using CSS. Every widget is build of multiple items
+ * GTK themes are written using CSS. Every widget is build of multiple items
  * that you can style very similarly to a regular website.
- *
  */
 
 #include <gtk/gtk.h>
index 91b1bfa8bb5db233c3801b79a10c6c5fa1823bbb..3b355fef3ec4b1db97dd27baaf93450eb28a4446 100644 (file)
@@ -1,4 +1,5 @@
 /* Dialogs
+ * #Keywords: GtkMessageDialog
  *
  * Dialogs are used to pop up transient windows for information
  * and user feedback.
index f7b567d3825c36a2ad0bd38ab8e8bec100d0a7b4..14b87f64d31291a33ea9ef224926f80b5f827c79 100644 (file)
@@ -1,4 +1,5 @@
 /* Drawing Area
+ * #Keywords: GtkDrawingArea
  *
  * GtkDrawingArea is a blank area where you can draw custom displays
  * of various kinds.
index 85180372eede332b08821ac93ff9c1fe232badcd..b4f07337b19f76bc037bfb377beb05d02f3665cc 100644 (file)
@@ -1,4 +1,5 @@
 /* Tree View/Filter Model
+ * #Keywords: GtkTreeView
  *
  * This example demonstrates how GtkTreeModelFilter can be used not
  * just to show a subset of the rows, but also to compute columns
index b9a140df4ae8e8afe24f6cefba7ebd060f89c9e7..f539e53e9b66e3697bf4c32f9806047b220b54d2 100644 (file)
@@ -1,4 +1,5 @@
 /* Fixed Layout
+ * #Keywords: GtkLayoutManager
  *
  * GtkFixed is a container that allows placing and transforming
  * widgets manually.
index 690d4ea3557317c7dc4498b6190ad7d59716b645..d6682db9a47f3212702c059816ae476ce40259d2 100644 (file)
@@ -1,4 +1,5 @@
 /* Gestures
+ * #Keywords: GtkGesture
  *
  * Perform gestures on touchscreens and other input devices. This
  * demo reacts to long presses and swipes from all devices, plus
index 2783f08a8d6aec4bc87087055d2ad86745aafc6b..f5e81fca89474c52fa19e43c8015fee7d47dd247 100644 (file)
@@ -1,4 +1,5 @@
 /* Header Bar
+ * #Keywords: GtkWindowHandle, GtkWindowControls
  *
  * GtkHeaderBar is a container that is suitable for implementing
  * window titlebars. One of its features is that it can position
index 95c5a3ea316fd6c57a258a8f45a26fe1272ae150..9236d188a54c11d9ca688d3d507fd5060fda1a51 100644 (file)
@@ -1,4 +1,5 @@
 /* Text View/Hypertext
+ * #Keywords: GtkTextView, GtkTextBuffer
  *
  * Usually, tags modify the appearance of text in the view, e.g. making it
  * bold or colored or underlined. But tags are not restricted to appearance.
index 9c9e198e2c87404960f7886a2b78f572b068c10d..3c05e2755d0297e9f11f1b5d56068c479b0cd318 100644 (file)
@@ -1,4 +1,5 @@
 /* Benchmark/Scrolling
+ * #Keywords: GtkScrolledWindow
  *
  * This demo scrolls a view with various content.
  */
index c53bd5f68846d669d3966134010c6e615e8fc3e1..43d138101ca5e39cd62e401cd0228687fd19a54d 100644 (file)
@@ -1,4 +1,5 @@
 /* Images
+ * #Keywords: GdkPaintable, GtkWidgetPaintable
  *
  * GtkImage and GtkPicture are used to display an image; the image can be
  * in a number of formats.
index 32f88c8eb8b1ab8fe2a1591c8fe0338605347d25..15caf102861ae58748e7dc4c4ef831bc9efdcd97 100644 (file)
@@ -1,4 +1,5 @@
 /* Info Bars
+ * #Keywords: GtkInfoBar
  *
  * Info bar widgets are used to report important messages to the user.
  */
index b07c45379867b3b294e3c357868d83bf280c144e..b03bc040a16b7d226578117d195a12c57584a22a 100644 (file)
@@ -1,4 +1,5 @@
 /* Layout Manager/Transition
+ * #Keywords: GtkLayoutManager
  *
  * This demo shows a simple example of a custom layout manager
  * and a widget using it. The layout manager places the children
index 8d17f2a47dea017a11d9446519a3f3ff54694e0b..83691c3dfeb5a0871b1e710fa641e5175df7d95b 100644 (file)
@@ -1,4 +1,5 @@
 /* Layout Manager/Transformation
+ * #Keywords: GtkLayoutManager, GskTransform
  *
  * This demo shows how to use transforms in a nontrivial
  * way with a custom layout manager. The layout manager places
index 1ca6bff2d1b947faafba8390747e79cbcebeb1eb..7619a51a68c1353d4aae9b78f5a8de0afd816a44 100644 (file)
@@ -3,7 +3,6 @@
  * The GtkListStore is used to store data in list form, to be used
  * later on by a GtkTreeView to display it. This demo builds a
  * simple GtkListStore and displays it.
- *
  */
 
 #include <gtk/gtk.h>
index 0a9b6959df0de1247e1067a3f1226fcc23189d76..4905fecd797484a13547f5ff470896c3da399a20 100644 (file)
@@ -2,7 +2,6 @@
  *
  * GtkListBox allows lists with complicated layouts, using
  * regular widgets supporting sorting and filtering.
- *
  */
 
 #include <gtk/gtk.h>
index 3dcdbca05584b4177e76484283a725cd6ac83c1d..15f5e32a963589dbe98c95dbb2f552c89eda4271 100644 (file)
@@ -1,4 +1,5 @@
 /* Lists/Application launcher
+ * #Keywords: GtkListItemFactory, GListModel
  *
  * This demo uses the GtkListView widget as a fancy application launcher.
  *
index 9dbdc0d5e725b53843801d8c717cbf929168ed8c..22a463823d9c706aadb3c3d9f7e7db22f0503372 100644 (file)
@@ -1,10 +1,11 @@
 /* Lists/Clocks
+ * #Keywords: GtkGridView, GtkListItemFactory, GListModel
  *
  * This demo displays the time in different timezones.
  *
  * The goal is to show how to set up expressions that track changes
  * in objects and make them update widgets. For that, we create a
- * GtkClock object that updates its time every second and then use
+ * clock object that updates its time every second and then use
  * various ways to display that time.
  *
  * Typically, this will be done using GtkBuilder .ui files with the
index aa4cdf1468148da5199dfdc3a24efabefd641473..c05807a1c140f56947078a6298a136ba7cc61554 100644 (file)
@@ -1,4 +1,5 @@
 /* Lists/Colors
+ * #Keywords: GtkSortListModel, GtkMultiSelection
  *
  * This demo displays a grid of colors.
  *
index 47237cb3c7e74d05d1dab7ec708550bbd0eb0b24..a840950ee8260acf35b473c2660c666d6f5f2529 100644 (file)
@@ -1,4 +1,5 @@
 /* Lists/File browser
+ * #Keywords: GListModel
  *
  * This demo shows off the different layouts that are quickly achievable
  * with GtkListview and GtkGridView by implementing a file browser with
index e43eaceb0b002d41ef3163b5db1f8df2a22f4e13..11ad0759beb6d460ed17e08bdc750aef7194301a 100644 (file)
@@ -1,7 +1,8 @@
 /* Lists/Minesweeper
+ * #Keywords: GtkGridView, GListModel, game
  *
  * This demo shows how to develop a user interface for small game using a
- * gridview.
+ * grid view.
  *
  * It demonstrates how to use the activate signal and single-press behavior
  * to implement rather different interaction behavior to a typical list.
index 57e4797c1a2b2a415346add9d22919c5afe1c5d6..6e67d5679049d2efeffc6cfa6089310a18d5d881 100644 (file)
@@ -1,4 +1,5 @@
 /* Lists/Settings
+ * #Keywords: GtkListItemFactory, GListModel
  *
  * This demo shows a settings viewer for GSettings.
  *
index 4aa9a9977ce793a7c8c15a8c0acf8b84bb2055b6..867f74e6522693a1b4f342fcd8e7855c7c985cb8 100644 (file)
@@ -1,4 +1,5 @@
 /* Lists/Words
+ * #Keywords: GtkListView, GtkFilterListModel
  *
  * This demo shows filtering a long list - of words.
  *
index 6648d508f3e7354178efb4a3d659a787adf07ede..900436f6e70ddacaaf85d33a49d37ae6ede97cf6 100644 (file)
@@ -1,4 +1,5 @@
 /* Text View/Markup
+ * #Keywords: GtkTextView
  *
  * GtkTextBuffer lets you define your own tags that can influence
  * text formatting in a variety of ways. In this example, we show
index e56d6fe36e86807e65c98926852ef3e2c51d25b8..51d09bcb2448908ca2c7eb8d8efa6185e62fe8b6 100644 (file)
@@ -1,4 +1,5 @@
 /* Overlay/Interactive Overlay
+ * #Keywords: GtkOverlay
  *
  * Shows widgets in static positions over a main widget.
  *
index 10b4476fb28c457feddad8e35428c222e4863880..11f2e2a243d460cf847ab1056f6a2f29b116dfab 100644 (file)
@@ -1,4 +1,5 @@
 /* Overlay/Decorative Overlay
+ * #Keywords: GtkOverlay
  *
  * Another example of an overlay with some decorative
  * and some interactive controls.
index 09150a9eb71b601786b328b6bd0bf81f56ad13f4..1f58652b6ef86494f51f7fb91b7fe01e87d32347 100644 (file)
@@ -1,4 +1,5 @@
 /* Printing/Page Setup
+ * #Keywords: GtkPageSetup
  *
  * GtkPageSetupUnixDialog can be used if page setup is needed
  * independent of a full printing dialog.
index e95e25a5a1ab1286b638d827a9c01708d09a0311..147ddea7530f535027cd57c5ee1db9d90645c986 100644 (file)
@@ -1,4 +1,5 @@
 /* Paint
+ * #Keywords: GdkDrawingArea, GtkGesture
  *
  * Demonstrates practical handling of drawing tablets in a real world
  * usecase.
index 70681c1f57cc80dca0925c5c8c54cbbbf17c83c0..4fe4f11d447e21242238e3ca2e3fe17d72eb7331 100644 (file)
@@ -1,4 +1,5 @@
 /* Peg Solitaire
+ * #Keywords: GtkGridView, game
  *
  * This demo demonstrates how to use drag'n'drop to implement peg solitaire.
  *
index a5404d1e798ffb355f12980838bb2e8e9abbefe0..6a4da706e2c2bdfc3e2c30f284e93dfdca78bd46 100644 (file)
@@ -1,4 +1,6 @@
 /* Pickers
+ * #Keywords: GtkColorChooser, GtkFontChooser, GtkFileChooser,
+ * #Keywords: GtkApplicationChooser
  *
  * These widgets are mainly intended for use in preference dialogs.
  * They allow to select colors, fonts, files, directories and applications.
index f095c5957552944a4e70bf2be6e76d88e5ea45e1..beef569f250cf56e603290b55627f50df7ee4e2a 100644 (file)
@@ -2,7 +2,6 @@
  *
  * GtkPrintOperation offers a simple API to support printing
  * in a cross-platform way.
- *
  */
 
 #include <math.h>
index 88a81edaa80d18738a82187c2ff7a013bfee65ea..4f2c3f9513adc7e01fae4b0824a897824055b632 100644 (file)
@@ -1,10 +1,10 @@
 /* Pango/Rotated Text
  *
  * This demo shows how to use PangoCairo to draw rotated and transformed
- * text.  The right pane shows a rotated GtkLabel widget.
+ * text. The right pane shows a rotated GtkLabel widget.
  *
  * In both cases, a custom PangoCairo shape renderer is installed to draw
- * a red heard using cairo drawing operations instead of the Unicode heart
+ * a red heart using cairo drawing operations instead of the Unicode heart
  * character.
  */
 
index 29d417adf1a1635667a3551e7fad2691e29e588f..f6027196b728c8e16bdb429ffdf5d3fae689a25c 100644 (file)
@@ -1,9 +1,13 @@
 /* Entry/Delayed Search Entry
  *
- * GtkSearchEntry sets up GtkEntries ready for search. Search entries
- * have their "changed" signal delayed and should be used
- * when the searched operation is slow such as loads of entries
- * to search, or online searches.
+ * GtkSearchEntry provides an entry that is ready for search.
+ *
+ * Search entries have their "changed" signal delayed and should
+ * be used when the searched operation is slow such as loads of
+ * entries to search, or online searches.
+ *
+ * GtkSearchBar allows have a hidden search entry that 'springs
+ * into action' upon keyboard input.
  */
 
 #include <gtk/gtk.h>
index cd8ba2bb4147d9fc309854f491825e75dad80654..2831baf51b8672dc8b72086e7cc7e3d883f93d2a 100644 (file)
@@ -1,4 +1,5 @@
 /* OpenGL/Shadertoy
+ * #Keywords: GtkGLArea
  *
  * Generate pixels using a custom fragment shader.
  *
index b84cb0354cd994088e7954cf07d8a6176049a1f1..44b8839ca7c6dfc36ec6874f3c34943e988c0b83 100644 (file)
@@ -1,4 +1,5 @@
 /* Shortcuts
+ * #Keywords: GtkShortcutController
  *
  * GtkShortcut is the abstraction used by GTK to handle shortcuts from
  * keyboard or other input devices.
index a91aa6c2271d0ee986fc6af633a78106312113bc..4d7e23f908f459cdeb0dc2f1406e7a376609ab0b 100644 (file)
@@ -1,8 +1,8 @@
 /* Sliding Puzzle
+ * #Keywords: GdkPaintable, GdkGesture, game
  *
  * This demo demonstrates how to use gestures and paintables to create a
  * small sliding puzzle game.
- *
  */
 
 #include <gtk/gtk.h>
index 97f25b857ab966d3214d54a6ac3e05d7327dd46a..fda257af17d822fe7a080c56c36ba3fcd2675fa6 100644 (file)
@@ -1,4 +1,5 @@
 /* Spin Buttons
+ * #Keywords: GtkEntry
  *
  * GtkSpinButton provides convenient ways to input data
  * that can be seen as a value in a range. The examples
index 21c33441e98c9a541eb4843cd31b3007b618b0c8..925f02576ec0341b91b3eea3f69b179c3947d056 100644 (file)
@@ -1,7 +1,6 @@
 /* Spinner
  *
  * GtkSpinner allows to show that background activity is on-going.
- *
  */
 
 #include <glib/gi18n.h>
index 338bb8b3cfa485c6b18edd1c6e7917d91c5e1758..8bb62a8406106ea802513fb2afffbc810c157842 100644 (file)
@@ -1,4 +1,5 @@
 /* Text View/Automatic Scrolling
+ * #Keywords: GtkTextView, GtkScrolledWindow
  *
  * This example demonstrates how to use the gravity of
  * GtkTextMarks to keep a text view scrolled to the bottom
index 263806e814c4d5dbc64c12100b272458191ed927..7263feb718afbc8de9cbf9113391dc0e9cd35b9c 100644 (file)
@@ -1,4 +1,5 @@
 /* Overlay/Transparency
+ * #Keywords: GtkOverlay, GtkSnapshot
  *
  * Blur the background behind an overlay.
  */
index f41787054918f4a126004d6e4f5a8a6811dd3f25..d2df677a5d8caf538507484910027a30220c04b0 100644 (file)
@@ -1,4 +1,6 @@
 /* Video Player
+ * #Keywords: GtkVideo, GtkMediaStream, GtkMediaFile, GdkPaintable
+ * #Keywords: GtkMediaControls
  *
  * This is a simple video player using just GTK widgets.
  */